#! /usr/bin/python
d = 1
for i in xrange(1, 10):
  for j in xrange(1, i):
    for k in xrange(1, j):
      ki = k*10 + i
      ij = float(i)*10 + j
      if (ij/ki == float(j)/k):
        d *= ij/ki
	print ki
print "Answer to PE33 = ",d
